
package com.king.cms.common;

import java.io.File;

import javax.servlet.http.HttpServlet;

import org.apache.log4j.PropertyConfigurator;



public class Log4jInit extends HttpServlet {

	private static final long serialVersionUID = 259327117044066667L;
    public void init() {
        String prefix = getServletContext().getRealPath("/");
        String file = getInitParameter("propfile");
        
        if (file != null) {
            PropertyConfigurator.configure(prefix + file);
        }
    }

}
